package com.javaPro.myProject.modules.comment.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 评论表(TComment)实体类
 *
 * @author makejava
 * @since  16:35:52
 */
@Data
public class TComment implements Serializable {
    private static final long serialVersionUID = 229780695723971404L;

    private Integer id;
    /**
     * 评论
     */
    private String comment;
    /**
     * 讨论id
     */
    private Integer articleId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 状态
     */
    private String status;
    /**
     * 评论或者回复的 发表者 id
     */
    private Integer senderId;
    /**
     * 接收人id
     */
    private Integer recriverId;
    /**
     * 楼主id
     */
    private Integer landlordId;

    //是否为楼主 0 否 ，1 是
    private String originFlag;
    //发送者id
    private String senderName;
    private String senderImg;
    //接收者id
    private String receiverName;
    private String receiverImg;
    private String resFlag;

    private List<TComment> childEvaluate;
}

